package com.ysd.lis.controller;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.WkEmployee;
import com.ysd.lis.service.WkEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 科室办公 档案表 前端控制器
 * </p>
 *
 * @author LiuQi
 * @since 2024-02-19
 */
@RestController
@RequestMapping("/wk/employee")
public class WkEmployeeController extends BaseController {

    @Autowired
    WkEmployeeService wkEmployeeService;

    @GetMapping("/getEmployeeList")
    public Result getEmployeeList() {
        return wkEmployeeService.getEmployeeList();
    }

    @PostMapping("/addEmployee")
    public Result addEmployee(@RequestBody WkEmployee wkEmployee) {
        return wkEmployeeService.addEmployee(wkEmployee);
    }

    @PostMapping("/updateEmployee")
    public Result updateEmployee(@RequestBody WkEmployee wkEmployee) {
        return wkEmployeeService.updateEmployee(wkEmployee);
    }

    @PostMapping("/deleteEmployee")
    public Result deleteEmployee(@RequestBody WkEmployee wkEmployee) {
        return wkEmployeeService.deleteEmployee(wkEmployee);
    }

}
